package ${package.Service};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
import ${superServiceClassPackage};

import com.stef.saas.common.base.dto.BaseResult;
import com.stef.saas.common.base.dto.PageResult;
import ${package.DTO}.${entity}PageDTO;
import ${package.DTO}.${entity}DTO;
import ${package.VO}.${entity}VO;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @date ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

  BaseResult<Page<${entity}>> pageList${entity}(${entity}PageDTO pageDTO);

  BaseResult<${entity}> doSave(${entity}DTO dto);

  BaseResult<Boolean> doDelete(Integer id);

  BaseResult<${entity}> doUpdate(${entity}DTO dto);

  BaseResult<${entity}> detail(Integer id);
}
</#if>
